package com.ruoyi.api.project.projectInfo;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.project.projectInfo.domain.ProjectInfo;
import com.ruoyi.project.projectInfo.service.IProjectInfoService;
import com.ruoyi.result.ResultView;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@EnableAsync
@RestController
@Slf4j
public class MobileProjectController {
  @Autowired
  private IProjectInfoService projectInfoService;
  /**
   * 查询项目信息列表
   */
  @GetMapping("/api/project/projectInfo/listAll")
  @ResponseBody
  public ResultView listAll()
  {
    ProjectInfo projectInfo = projectInfoService.selectProjectInfoById(173l);
    List<ProjectInfo> list =new ArrayList<>();
    list.add(projectInfo);
//    List<ProjectInfo> list = projectInfoService.selectProjectInfoList(new ProjectInfo());
    return ResultView.ok(list);
  }
}
